package webshop.controller.action;

import webshop.model.bl.ProductManager;

import com.opensymphony.xwork2.ActionSupport;

public class ProductDeleteAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -291764973839768301L;
	
	private Integer productId;
	
	@Override
	public String execute() {
		new ProductManager().deleteProduct(productId);
		return SUCCESS;
	}
	
	public void setProductId(Integer productId) {
		this.productId = productId;
	}

}
